import request from '@/utils/request'

// 查询五项制度列表
export function listManagement(query) {
  return request({
    url: '/system/management/list',
    method: 'get',
    params: query
  })
}

// 查询五项制度详细
export function getManagement(id) {
  return request({
    url: '/system/management/' + id,
    method: 'get'
  })
}

// 新增五项制度
export function addManagement(data) {
  return request({
    url: '/system/management',
    method: 'post',
    data: data
  })
}

// 修改五项制度
export function updateManagement(data) {
  return request({
    url: '/system/management',
    method: 'put',
    data: data
  })
}

// 删除五项制度
export function delManagement(id) {
  return request({
    url: '/system/management/' + id,
    method: 'delete'
  })
}

// 导出五项制度
export function exportManagement(query) {
  return request({
    url: '/system/management/export',
    method: 'get',
    params: query
  })
}

export function submitAgain(data) {
  return request({
    url: '/system/management/submitAgain',
    method: 'post',
    data: data
  })
}


export function reject(data) {
  return request({
    url: '/system/management/reject',
    method: 'post',
    data: data
  })
}

export function agree(data) {
  return request({
    url: '/system/management/agree',
    method: 'post',
    data: data
  })
}


export function operations(id) {
  return request({
    url: '/system/management/operations/' + id,
    method: 'get'
  })
}